package com.ateam.dao;

import java.util.List;

import com.ateam.pojo.Missions;

/** 
* @author WuYuan
* 
*/
public interface MissionsDao {
	public int addMission(Missions mission)throws Exception;
	public int addMissionleader(int userid,int missionid)throws Exception;
	public int addMissionmember(int userid,int missionid)throws Exception;
	public int deleteMissionmember(int userid, int missionid)throws Exception;
	public List<Missions> getMissionsByUserid(int userid)throws Exception;
	public int updateMissionComplete(int userid, int missionid )throws Exception;
	public int countMissionsHaveDone(int companyid)throws Exception;
	public int countMissionsHaventDone(int companyid)throws Exception;
	public List<Missions> getMissionsDoneByUserid(int userid)throws Exception;
	public Missions getMissionByMissionid(int missionid)throws Exception;
}
